﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataAccess
{
    public class DataFactories
    {
        public static DataFactory GetFactory(string provider)
        {
            switch (provider)
            {
                case "System.Data.OleDb": return new Access.AccessDataFactory();
                case "System.Data.SqlClient": return new SqlServer.SqlServerDataFactory();
                default: return new SqlServer.SqlServerDataFactory(); 
            }
        }
    }
}
